<?php
 require_once("/../../../../includes/controller/initialize.php"); 
 
 
 echo "Success!";
    if(isset($_POST['commid'])){

        $commentid = $_POST['commid'];
        $like = $_POST['like'];

    $message = $stats_controller->likeReceiver($like,$commentid);
}
   if(isset($_POST['commentonlyc'])){
       
        $userid = $_POST['useridcomment'];
        $connid = $_POST['connectionidcomment'];
        $commentc = $_POST['commentonlyc'];
        
      $message =  $CP_controller->commentOnly($commentc,$userid,$connid);
    }
    if(isset($_POST['ratename'])){
    $ratec = $_POST['ratename'];
        $userid = $_POST['useridrate'];
        $connid = $_POST['connidrate'];
 
    $message = $stats_controller->rateReceiver($ratec,$userid,$connid);
    var_dump($message);
}
echo $message;


?>
